/**
 * Copyright (c) 2014- 2015 YCY Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.jkwzms.system.user.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jkwzms.common.inject.annotation.BaseComponent;
import com.jkwzms.common.web.controller.BaseCRUDController;
import com.jkwzms.system.user.entity.UserStatus;
import com.jkwzms.system.user.entity.UserStatusHistory;
import com.jkwzms.system.user.service.UserStatusHistoryService;

/**
 * <p>
 * User: Jack Liang
 * <p>
 * Date: 13-1-28 下午4:29
 * <p>
 * Version:1.0.0
 */
@Controller
@RequestMapping(value = "/admin/sys/user/statusHistory")
public class UserStatusHistoryController extends BaseCRUDController<UserStatusHistory, Long> {

    @Autowired
    @BaseComponent
    private UserStatusHistoryService userStatusHistoryService;

    public UserStatusHistoryController(){
        setListAlsoSetCommonData(true);
        setResourceIdentity("sys:userStatusHistory");
    }

    @Override
    protected void setCommonData(Model model) {
        model.addAttribute("statusList", UserStatus.values());
    }

}
